//
//  HttpProvider.h
//  HYSmileiOS
//
//  Created by alekye on 16/4/26.
//  Copyright © 2016年 heyou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserInfoDetail.h"
#import "ArticleModel.h"
#import "CommentModel.h"

/**
 *  封装网络接口，向上层提供数据服务
 *  
 *  需防止重入
 */
@interface HttpProvider : NSObject
/**
 *  根据用户摘要信息获取详情（测试接口）
 *
 *  @param brief    摘要
 *  @param _success 成功回调
 *  @param _failure 失败回调
 */
+ (void)getUserDetailInfo:(UserInfoBrief*)brief
                  success:(void (^)(UserInfoDetail* detail))_success
                  failure:(void (^)(NSError *error))_failure;


/**
 *  评论
 *
 *  @param cm       评论内容
 *  @param model    评论的微博
 *  @param _success 成功回调
 *  @param _failure 失败回调
 */
+ (void)comment:(CommentModel*)cm
        article:(ArticleModel*)model
        success:(void (^)(CommentModel* ncm))_success
        failure:(void (^)(NSError *error))_failure;

@end
